package cn.mystylefree.mybatisdemo.dao;

import cn.mystylefree.mybatisdemo.domain.User;

import java.io.IOException;
import java.util.List;

/**
 * @program my-project-model
 * @description:
 * @author: lee
 * @create: 2022/06/20 09:16
 */
public interface IUserDao {


    /**
     * 查询所有用户
     *
     * @return
     * @throws IOException
     */
    List<User> findAll() throws IOException;


    /**
     * 多条件组合查询：演示if
     *
     * @param user
     * @return
     */
    List<User> findByCondition(User user);


    /**
     * 多值查询：演示foreach
     *
     * @param ids
     * @return
     */
    List<User> findByIds(int[] ids);
}
